#include "Calculator.h"
#include "LinkedList.h"

void main()
{
	Calculator calc;
	LinkedList<char> list;

	list.PushBack('a');
	list.PushBack('+');
	list.PushBack('b');
	list.PushBack('*');
	list.PushBack('c');
	list.PushBack('+');
	list.PushBack('(');
	list.PushBack('d');
	list.PushBack('*');
	list.PushBack('e');
	list.PushBack('+');
	list.PushBack('f');
	list.PushBack(')');
	list.PushBack('*');
	list.PushBack('g');

	LinkedList<char> result = calc.Infix2Postfix(list);
	cout << endl << "Result: ";
	for(int j=0; j<result.Length(); j++)
		cout << result.Get(j);
	cout << endl;
	//Desired: abc*+de*f+g*+

	system("PAUSE");
}